package com.zr.dao.dispatch;

import com.zr.vo.dispatch.DispatchAbnormalRecord;

import java.util.Date;
import java.util.List;

/**
 * @author 杜雨萌
 * @date 2022/10/29
 * @version 2022.1
 */
public interface DispatchAbnormalRecordDao {
    int deleteByPrimaryKey(Integer id);

    int insert(DispatchAbnormalRecord record);

    int insertSelective(DispatchAbnormalRecord record);

    DispatchAbnormalRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DispatchAbnormalRecord record);

    int updateByPrimaryKey(DispatchAbnormalRecord record);

    /**
     * 查询所有的异常记录
     * @param dispatchAbnormalRecord
     * @return
     * @author 杜雨萌
     */
    List<DispatchAbnormalRecord> list(DispatchAbnormalRecord dispatchAbnormalRecord);

    /**
     * 查询所有的状态列表
     * @return
     * @author 杜雨萌
     */
    List<String> statusList();

    /**
     * 查询所有受理结果集
     * @return
     * @author 杜雨萌
     */
    List<String> acceptResultList();

    List<DispatchAbnormalRecord> selectDispatchAbnormalRecordListByTicketId(String ticketId);

//    List<String> dispatchAcceptResultDao();

    List<String> getTypesByTime(Date begin, Date end);

    Integer getNumByTypeAndMonth(String type, Integer year, Integer month);
    /**
     * 查询当前调度单异常信息
     * @param ticketId
     * @return
     */
    List<DispatchAbnormalRecord> listByDispatch(String ticketId);


    List<DispatchAbnormalRecord> getAbnList(String carNumber);

}